package com.foreveross.vo.condition;

public class TenementCostCondition {
	private String cusId;
	private String startTime;
	private String endTime;
	private String orgId;
	
	public TenementCostCondition(String cusId, String startTime,
			String endTime, String orgId) {
		super();
		this.cusId = cusId;
		this.startTime = startTime;
		this.endTime = endTime;
		this.orgId = orgId;
	}
	public String getCusId() {
		return cusId;
	}
	public void setCusId(String cusId) {
		this.cusId = cusId;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getOrgId() {
		return orgId;
	}
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	
	// 通过cusId、orgId判断是否同一个值
	@Override
	public boolean equals(Object obj) {
		TenementCostCondition tcc = (TenementCostCondition)obj;
		return cusId.equals(tcc.getCusId()) && orgId.equals(tcc.getOrgId());
	}
	@Override
	public int hashCode() {
		String hc = cusId + startTime + endTime + orgId;
		return hc.hashCode();
	}		
}
